import 'package:flutter/material.dart';

class ImagePage extends StatelessWidget {
  final double? width;
  final double? height;
  final String? imageUrl;

  ImagePage({
    super.key,
    required this.imageUrl,
     this.width = double.infinity,
     this.height = 200,
  });

  @override
  Widget build(BuildContext context) {
    return Container(
      width: width,
      height: height,
      child: Image.network(
        imageUrl!,
        fit: BoxFit.cover,
      ),
    );
  }
}
